package Four;
import java.util.concurrent.locks.Lock;
import java.util.concurrent.locks.ReentrantLock;
public class Account {
		private int balance;
		
		public int getBalance() {
			return balance;
		}

		public Account(int balance) {
			super();
			this.balance = balance;
		}

		public void setBalance(int balance) {
			this.balance = balance;
		}
		public synchronized void deposit(int money){
			this.balance+=money;
		}
		public synchronized void withdraw(int money){
			this.balance-=money;
		}
		
}

